const {examtypeModel} = require('../models/examtypeModel');

async function getExamTypes(req, res, next) {
    const result = await examtypeModel.find();
    if(result.length>0){
        res.send({
            code:200,
            result,
        })
    }else{
        res.send({
            code:500,
        })
    }

   
}

module.exports={
    getExamTypes
}